From: Adrian Vovk Date: Wed, 9 Jul 2025 00:56:18 +0000 (-0400) Subject: Revert "main: Notify gnome-session when we're ready" X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~116^2^2~45 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d697bdceaefeae49ad0e03df7352884899c3e14a;p=gnome-shell.git Revert "main: Notify gnome-session when we're ready" This reverts commit 1747a59aa5d44f4d7b74e1f1fee1d48174a1ce5a. gnome-session is no longer a service manager, and thus doesn't need to be notified of our readiness like this. We now do this exclusively through systemd Part-of: --- diff --git a/js/ui/main.js b/js/ui/main.js index 1fc75e130..76b917f48 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -319,7 +319,6 @@ async function _initializeUI() { GLib.idle_add(GLib.PRIORITY_DEFAULT, () => { Shell.util_sd_notify(); global.context.notify_ready(); - _notifyGnomeSessionReady(); return GLib.SOURCE_REMOVE; }); @@ -384,20 +383,6 @@ async function _initializeUI() { }); } -async function _notifyGnomeSessionReady() { - try { - let params = GLib.Variant.new('(ss)', ['org.gnome.Shell.desktop', '']); - await Gio.DBus.session.call( - 'org.gnome.SessionManager', - '/org/gnome/SessionManager', - 'org.gnome.SessionManager', - 'RegisterClient', params, null, - Gio.DBusCallFlags.NONE, -1, null); - } catch (e) { - log(`Error notifying gnome-session that we're ready: ${e.message}`); - } -} - function _handleShowWelcomeScreen() { const lastShownVersion = global.settings.get_string(WELCOME_DIALOG_LAST_SHOWN_VERSION); if (Util.GNOMEversionCompare(WELCOME_DIALOG_LAST_TOUR_CHANGE, lastShownVersion) > 0) {